package springboot.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import springboot.demo.annotation.NotProfile;
import springboot.demo.bean.User;

/**
 * User Mapper接口
 */
@Mapper
@NotProfile("simple")
public interface UserMapper extends BaseMapper<User> {
    
    /**
     * 根据登录名查询用户
     * @param loginname 登录名
     * @return 用户信息
     */
    @Select("SELECT * FROM user WHERE loginname = #{loginname}")
    User selectByLoginname(String loginname);
}